package com.wei.czz.framework.blog.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wei.czz.common.po.blog.audit.groupUser.BlogAuditGroupUserPo;
import com.wei.czz.common.vo.blog.audit.groupUser.BlogAuditGroupUserFormVo;
import com.wei.czz.framework.blog.entity.BlogAuditGroupUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2024-12-05 08:22:00
 * className: BlogAuditGroupUserDao
 * version: 1.0
 * description:
 */
public interface BlogAuditGroupUserDao extends BaseMapper<BlogAuditGroupUserEntity> {

    /**
     * 分页查询博客审核分组用户
     * @param page   mp分页对象
     * @param formVo 参数对象
     * @return 博客审核分组用户分页对象
     */
    Page<BlogAuditGroupUserPo> selectPageList(Page<BlogAuditGroupUserPo> page,
                                              @Param("formVo") BlogAuditGroupUserFormVo formVo);

    /**
     * 查询博客审核分组用户
     * @param groupId         分组主键
     * @param status          状态
     * @param autoClaimStatus 自动认领状态
     * @param deleteStatus    删除状态
     * @return 博客审核分组用户列表
     */
    List<BlogAuditGroupUserPo> selectEffectList(@Param("groupId") Long groupId,
                                                @Param("status") Integer status,
                                                @Param("autoClaimStatus") Integer autoClaimStatus,
                                                @Param("deleteStatus") Integer deleteStatus);
}
